import express from 'express';
import {
    imageUpload,
    videoUpload,
    avatarUpload,
    uploadImage,
    uploadVideo,
    uploadAvatarFile
} from '../controllers/uploadController.js';

const router = express.Router();

// 图片上传路由
router.post('/image', imageUpload.single('image'), uploadImage);

// 视频上传路由
router.post('/video', videoUpload.single('video'), uploadVideo);

// 头像上传路由
router.post('/avatar', avatarUpload.single('avatar'), uploadAvatarFile);

export default router;